package com.bookpavilion.chat.controller;

import com.bookpavilion.chat.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/user")
public class UserController {
    @Autowired
    private MessageService messageService;

    /**
     * 查询用户列表
     * @param fromId
     * @return
     */
    public List<Map<String ,Object>> queryUserList(@RequestParam("fromId") String  fromId){
        List<Map<String,Object>> result = new ArrayList<>();
        return null;
    }
}
